package com.orm.handler;

import java.sql.JDBCType;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class StringTypeHandler extends BaseTypeHandler<String>{
	
	@Override
	public void setNotNullParameter(PreparedStatement ps, int i, String parameter, JDBCType jdbcType) throws SQLException {
		ps.setString(i,parameter);
	}
	
	@Override
	public String getNullableResult(ResultSet rs, String columnName) throws SQLException {
		return rs.getString(columnName);
	}
	
	@Override
	public String getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
		return rs.getString(columnIndex);
	}
}
